package com.glqiang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glqiang.domain.entity.Permission;
import com.glqiang.mapper.PermissionMapper;
import com.glqiang.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Permission)表服务实现类
 *
 * @author glqiang
 * @since 2022-11-21 23:36:15
 */
@Service("permissionService")
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<String> listPermissionByUserId(Long id) {
        return permissionMapper.listPermissionByUserId(id);
    }
}

